E:\workspace\MemcachedProxy\venv\Scripts\pyinstaller -F --distpath dist\ -n MemcachedProxy^
    --hidden-import urllib ^
    --hidden-import urllib2 ^
    --hidden-import ElementTree ^
    --hidden-import email.mime.message ^
    --hidden-import email.mime.image ^
    --hidden-import email.mime.text ^
    --hidden-import email.mime.multipart ^
    --hidden-import email.mime.audio ^
    --hidden-import xml.etree.ElementTree ^
    --hidden-import defusedxml.ElementTree ^
    --hidden-import sqlalchemy.ext.baked ^
    --hidden-import sqlalchemy.ext.baked ^
    --hidden-import engineio.async_eventlet ^
    --hidden-import dns ^
    --hidden-import dns.dnssec ^
    --hidden-import dns.e164 ^
    --hidden-import dns.namedict ^
    --hidden-import dns.tsigkeyring ^
    --hidden-import dns.update ^
    --hidden-import dns.version ^
    --hidden-import dns.zone ^
    run.py

fabmanager collect-static

mkdir dist\static
xcopy app\static dist\static /S /Y
mkdir dist\templates
xcopy app\templates dist\templates /S /Y
xcopy venv\lib\site-packages\flask_appbuilder\templates dist\templates /S /Y
copy app.db dist\
copy MemcachedProxy.yaml dist\